package com.liyao.windowtest4.pojo;

import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;

/**
 * @program: windowtest4
 * @description:
 * @author: liu yan
 * @create: 2024-10-24 19:24
 */
public class torqueRow {

    private SimpleIntegerProperty SerialNumber;
    // 假设还有其他属性

    private SimpleDoubleProperty TorqueMin;
    private SimpleDoubleProperty AngleTarget;
    private SimpleDoubleProperty TorqueMax;
    private SimpleDoubleProperty AngleMin;
    private SimpleDoubleProperty TorqueTarget;
    private SimpleDoubleProperty AngleMax;
    private SimpleDoubleProperty StartAngle;

    public torqueRow(int serialNumber,double torqueMin, double angleTarget, double torqueMax, double angleMin, double torqueTarget, double angleMax, double startAngle) {
        SerialNumber=new SimpleIntegerProperty(serialNumber);
        TorqueMin = new SimpleDoubleProperty(torqueMin);
        AngleTarget = new SimpleDoubleProperty(angleTarget);
        TorqueMax = new SimpleDoubleProperty(torqueMax);
        AngleMin = new SimpleDoubleProperty(angleMin);
        TorqueTarget = new SimpleDoubleProperty(torqueTarget);
        AngleMax = new SimpleDoubleProperty(angleMax);
        StartAngle = new SimpleDoubleProperty(startAngle);
    }

    public torqueRow(double torqueMin, double angleTarget, double torqueMax, double angleMin, double torqueTarget, double angleMax, double startAngle) {
        TorqueMin = new SimpleDoubleProperty(torqueMin);
        AngleTarget = new SimpleDoubleProperty(angleTarget);
        TorqueMax = new SimpleDoubleProperty(torqueMax);
        AngleMin = new SimpleDoubleProperty(angleMin);
        TorqueTarget = new SimpleDoubleProperty(torqueTarget);
        AngleMax = new SimpleDoubleProperty(angleMax);
        StartAngle = new SimpleDoubleProperty(startAngle);
    }

    public int getSerialNumber() {
        return SerialNumber.get();
    }

    public SimpleIntegerProperty serialNumberProperty() {
        return SerialNumber;
    }

    public void setSerialNumber(int serialNumber) {
        this.SerialNumber.set(serialNumber);
    }

    public double getTorqueMin() {
        return TorqueMin.get();
    }

    public SimpleDoubleProperty torqueMinProperty() {
        return TorqueMin;
    }

    public void setTorqueMin(double torqueMin) {
        this.TorqueMin.set(torqueMin);
    }

    public double getAngleTarget() {
        return AngleTarget.get();
    }

    public SimpleDoubleProperty angleTargetProperty() {
        return AngleTarget;
    }

    public void setAngleTarget(double angleTarget) {
        this.AngleTarget.set(angleTarget);
    }

    public double getTorqueMax() {
        return TorqueMax.get();
    }

    public SimpleDoubleProperty torqueMaxProperty() {
        return TorqueMax;
    }

    public void setTorqueMax(double torqueMax) {
        this.TorqueMax.set(torqueMax);
    }

    public double getAngleMin() {
        return AngleMin.get();
    }

    public SimpleDoubleProperty angleMinProperty() {
        return AngleMin;
    }

    public void setAngleMin(double angleMin) {
        this.AngleMin.set(angleMin);
    }

    public double getTorqueTarget() {
        return TorqueTarget.get();
    }

    public SimpleDoubleProperty torqueTargetProperty() {
        return TorqueTarget;
    }

    public void setTorqueTarget(double torqueTarget) {
        this.TorqueTarget.set(torqueTarget);
    }

    public double getAngleMax() {
        return AngleMax.get();
    }

    public SimpleDoubleProperty angleMaxProperty() {
        return AngleMax;
    }

    public void setAngleMax(double angleMax) {
        this.AngleMax.set(angleMax);
    }

    public double getStartAngle() {
        return StartAngle.get();
    }

    public SimpleDoubleProperty startAngleProperty() {
        return StartAngle;
    }

    public void setStartAngle(double startAngle) {
        this.StartAngle.set(startAngle);
    }
}
